Figure 3-1

The Kali login screen

After logging in to Kali, you need to make sure its up to date. To access the

terminal, open the Applications menu, and in the search bar, enter terminal

emulator. Click the corresponding application.

Lets use a few commands to update your software repositories and upgrade

your installed packages. In the terminal window, enter the following commands:

$ sudo apt update -y

$ sudo apt upgrade -y

$ sudo apt dist-upgrade -y

When you use sudo, Kali will ask for your password. This is the same

password you used to log in to the virtual machine, kali.

Newer Kali releases use the Z Shell (zsh) by default, so let’s ensure that bash

is the default shell for the kali user with this command:

$ sudo usermod --shell /bin/bash kali

Next, let's enable our new default shell by running the following command:

$ su - kali

Moving forward, well use this Kali machine for all tasks we cover in the book.

We recommend keeping the terminal window open, as youll need it for additional

installations very soon.

Black Hat Bash (Early Access) © 2023 by Dolev Farhi and Nick Aleks